<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>src.input.import_agg_FLEET.Import_agg_FLEET</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="src-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >ttrq4fleet - Petrina Papazek</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="src-module.html">Package&nbsp;src</a> ::
        <a href="src.input-module.html">Package&nbsp;input</a> ::
        <a href="src.input.import_agg_FLEET-module.html">Module&nbsp;import_agg_FLEET</a> ::
        Class&nbsp;Import_agg_FLEET
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class Import_agg_FLEET</h1><p class="nomargin-top"><span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_src_inpu_3" name="uml_class_diagram_for_src_inpu_3">
<area shape="rect" href="javascript:void(0);" title="??&#45;100" alt="" coords="452,11,495,43"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#begintime" title="src.input.import_agg_FLEET.Import_agg_FLEET.begintime" alt="" coords="17,89,929,108"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#endtime" title="src.input.import_agg_FLEET.Import_agg_FLEET.endtime" alt="" coords="17,108,929,127"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#__init__" title="src.input.import_agg_FLEET.Import_agg_FLEET.__init__" alt="" coords="17,129,929,148"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#get_begintime" title="src.input.import_agg_FLEET.Import_agg_FLEET.get_begintime" alt="" coords="17,148,929,167"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#get_endtime" title="src.input.import_agg_FLEET.Import_agg_FLEET.get_endtime" alt="" coords="17,167,929,185"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#set_begintime" title="src.input.import_agg_FLEET.Import_agg_FLEET.set_begintime" alt="" coords="17,185,929,204"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#set_endtime" title="src.input.import_agg_FLEET.Import_agg_FLEET.set_endtime" alt="" coords="17,204,929,223"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#del_begintime" title="src.input.import_agg_FLEET.Import_agg_FLEET.del_begintime" alt="" coords="17,223,929,241"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#del_endtime" title="src.input.import_agg_FLEET.Import_agg_FLEET.del_endtime" alt="" coords="17,241,929,260"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#import_data" title="imports the data from the databasesystem for one link" alt="" coords="17,260,929,279"/>
<area shape="rect" href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html" title="This class manages the import of aggregated FLEET records (agg_record&#45;objects) from the database system (Postgres)." alt="" coords="16,72,931,280"/>
</map>
  <img src="uml_class_diagram_for_src_inpu_3.gif" alt='' usemap="#uml_class_diagram_for_src_inpu_3" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>This class manages the import of aggregated FLEET records 
  (agg_record-objects) from the database system (Postgres).</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">db</span>,
        <span class="summary-sig-arg">fleettable</span>,
        <span class="summary-sig-arg">link</span>,
        <span class="summary-sig-arg">rec_fields</span>=<span class="summary-sig-default">'*'</span>,
        <span class="summary-sig-arg">begintime</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">endtime</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">start_time_attribute_name</span>=<span class="summary-sig-default">'start_time'</span>,
        <span class="summary-sig-arg">end_time_attribute_name</span>=<span class="summary-sig-default">'end_time'</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="get_begintime"></a><span class="summary-sig-name">get_begintime</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.get_begintime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="get_endtime"></a><span class="summary-sig-name">get_endtime</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.get_endtime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="set_begintime"></a><span class="summary-sig-name">set_begintime</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">value</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.set_begintime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="set_endtime"></a><span class="summary-sig-name">set_endtime</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">value</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.set_endtime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="del_begintime"></a><span class="summary-sig-name">del_begintime</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.del_begintime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="del_endtime"></a><span class="summary-sig-name">del_endtime</span>(<span class="summary-sig-arg">self</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.del_endtime">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#import_data" class="summary-sig-name">import_data</a>(<span class="summary-sig-arg">self</span>)</span><br />
      imports the data from the databasesystem for one link</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.import_data">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== CLASS VARIABLES ==================== -->
<a name="section-ClassVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variables</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariables"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#begintime" class="summary-name">begintime</a> = <code title="property(get_begintime, set_begintime, del_begintime, &quot;timestamp when \
the time period of the selection starts&quot;)">property(get_begintime, set_begintime, del_beginti<code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="src.input.import_agg_FLEET.Import_agg_FLEET-class.html#endtime" class="summary-name">endtime</a> = <code title="property(get_endtime, set_endtime, del_endtime, &quot;timestamp when the ti\
me period of the selection ends&quot;)">property(get_endtime, set_endtime, del_endtime, &quot;tim<code class="variable-ellipsis">...</code></code>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">db</span>,
        <span class="sig-arg">fleettable</span>,
        <span class="sig-arg">link</span>,
        <span class="sig-arg">rec_fields</span>=<span class="sig-default">'*'</span>,
        <span class="sig-arg">begintime</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">endtime</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">start_time_attribute_name</span>=<span class="sig-default">'start_time'</span>,
        <span class="sig-arg">end_time_attribute_name</span>=<span class="sig-default">'end_time'</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>db</code></strong> - database connection</li>
        <li><strong class="pname"><code>fleettable</code></strong> - name of the table/view, which contains the data</li>
        <li><strong class="pname"><code>links</code></strong> - linkset containing the links for the import</li>
        <li><strong class="pname"><code>rec_fields</code></strong> - selected fields so that fields come like [timestamp1, timestamp2,
          speed, count]</li>
        <li><strong class="pname"><code>begintime</code></strong> - start of the time period as timestamp</li>
        <li><strong class="pname"><code>endtime</code></strong> - end of the time period as timestamp</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="import_data"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">import_data</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="src.input.import_agg_FLEET-pysrc.html#Import_agg_FLEET.import_data">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>imports the data from the databasesystem for one link</p>
  <p>The imported data is written to the given link because a link offers a
  record-attribute. This record-attribute is assigned to a new Record_list 
  which manages the imported data.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== CLASS VARIABLE DETAILS ==================== -->
<a name="section-ClassVariableDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Class Variable Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-ClassVariableDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="begintime"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">begintime</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
property(get_begintime, set_begintime, del_begintime, &quot;timestamp when <span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
the time period of the selection starts&quot;)
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<a name="endtime"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">endtime</h3>
  
  <dl class="fields">
  </dl>
  <dl class="fields">
    <dt>Value:</dt>
      <dd><table><tr><td><pre class="variable">
property(get_endtime, set_endtime, del_endtime, &quot;timestamp when the ti<span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
me period of the selection ends&quot;)
</pre></td></tr></table>
</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="src-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >ttrq4fleet - Petrina Papazek</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Oct  8 17:34:00 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
